package com.market.manager.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.market.dao.FeedBackDao;
import com.market.domain.FeedBack;
import com.market.manager.FeedBackManager;

@Service("feedBackManager")
public class FeedBackManagerImpl extends GenericManagerImpl<FeedBackDao, FeedBack, Long>
		implements FeedBackManager {

	@Autowired
	@Override
	public void setDao(FeedBackDao dao) {
		this.dao =dao;		
	}
	
	public FeedBack fetchOne(FeedBack bo) {
		bo=this.dao.findById(bo.getId());;
		bo.setIsAssociatedLoaded(true);
		return bo;
	}
}
